package com.mall.order.model.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@ApiModel("订单交易流水表")
public class OrderTransEntity extends BaseEntity {

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("订单ID")
    @Excel(name = "订单ID")
    private Long orderId;

    @ApiModelProperty("交易号：微信平台产生")
    @Excel(name = "交易号：微信平台产生")
    private String tradeNo;

    @ApiModelProperty("交易类型：-1-微信支付；1-微信退款")
    @Excel(name = "交易类型：-1-微信支付；1-微信退款")
    private Integer tranType;

    @ApiModelProperty("交易额：单位（分）")
    @Excel(name = "交易额")
    private Integer tranAmount;

    @ApiModelProperty("交易状态：0-未交易；1-交易成功；2-交易失败")
    @Excel(name = "交易状态：0-未交易；1-交易成功；2-交易失败")
    private Integer tranStatus;

    @ApiModelProperty("交易失败原因")
    @Excel(name = "交易失败原因")
    private String failedReason;

    @ApiModelProperty("创建人ID")
    @Excel(name = "创建人ID")
    private Long createId;

}
